﻿@model ITTestingSystem.Models.Account.LogOnViewModel

@{
    ViewBag.Title = "Вхід";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container">
    <div class="row">
        <div class="col-md-4 col-lg-offset-4">
            @using (Html.BeginForm(MVC.Account.LogOn(), FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                <div class="form-group">
                    <h2>Вхід</h2>
                </div>
                <div class="form-group">
                    @Html.ValidationSummary(true)
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.Login, "Ваш логін:")
                    @Html.TextBoxFor(model => model.Login, new { @class = "form-control", placeholder = "Введіть логін..." })
                    @Html.ValidationMessageFor(model => model.Login)
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.Password, "Ваш пароль:")
                    @Html.PasswordFor(mode => mode.Password, new { @class = "form-control", placeholder = "Введіть пароль..." })
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
                <div class="form-group">
                    <div class="checkbox">
                        <label>
                            @Html.CheckBoxFor(model => model.RememberMe)
                            Запам'ятати мене
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-block">Увійти</button>
                </div>
                <div class="form-group">
                    <a href="@Url.Action(MVC.Account.Register())" class="btn btn-default btn-block" role="button">Або зареєструватися</a>
                </div>
            }
        </div>
    </div>
</div>
